Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This makes gitlabhq compatible with more LDAP servers (specifically OpenLDAP). #422

Merged
merged 1 commit into from
Feb 19, 2012
Merged

Conversation

steveprentice
Copy link
Contributor

This helps with compatibility with more LDAP providers as the implementation
doesn't depend on the exact names of the LDAP fields. The LDAP strategy
helps maps the attributes to the fields in the info object and we use the
info object to get the email and name.

This makes the LDAP auth compatible with most OpenLDAP servers as well.

This helps with compatibility with more LDAP providers as the implementation
doesn't depend on the exact names of the LDAP fields. The LDAP strategy
helps maps the attributes to the fields in the info object and we use the
info object to get the email and name.

This makes the LDAP auth compatible with most OpenLDAP servers as well.
@vsizov
Copy link
Contributor

vsizov commented Feb 17, 2012

are you sure in your code. It tested?

@steveprentice
Copy link
Contributor Author

Yes. Tested against an OpenLDAP server and an Active Directory server. Works on both. Previously, authenticating against our internal OpenLDAP server was failing because our ldap entries don't have the sAMAccountName attribute defined causing an exception at user.rb:71.

Getting these attributes is abstracted by the omniauth-ldap strategy to simplify supporting more LDAP servers. In omniauth/strategies/ldap.rb, look at how it maps the attributes to the info object with the @@config map and map_user().

https://github.com/intridea/omniauth-ldap/blob/master/lib/omniauth/strategies/ldap.rb

@dzaporozhets
Copy link
Member

@vsizov you did ldap - merge it if ok

vsizov added a commit that referenced this pull request Feb 19, 2012
This makes gitlabhq compatible with more LDAP servers (specifically OpenLDAP).
@vsizov vsizov merged commit a44b85b into gitlabhq:master Feb 19, 2012
tigefa4u referenced this pull request in tigefa4u/gitlabhq Jul 20, 2019
Improve the wording of the PostgreSQL version

Closes #422

See merge request gitlab-org/gitlab-development-kit!577
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants